home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-12-10 | 11.1 KB | [ TEXT/CWIE]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sun Dec 10 17:15:02 1995, modified Sun Dec 10 17:15:02 1995, creator 'CWIE', type ASCII, 10723 bytes "WindowInt.c" , at 0x2a63 410 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ CWIE]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0b 57 69 6e 64 6f 77 | 49 6e 74 2e 63 00 00 00 |..Window|Int.c...| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......| |00000050| 00 00 00 00 00 29 e3 00 | 00 01 9a ac f1 0c 66 ac |.....)..|......f.| |00000060| f1 0c 66 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |..f.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 54 38 00 00 |........|....T8..| |00000080| 2f 2a 2a 2a 2a 2a 0d 20 | 2a 0d 20 2a 09 57 69 6e |/*****. |*. *.Win| |00000090| 64 6f 77 49 6e 74 2e 63 | 0d 20 2a 0d 20 2a 09 54 |dowInt.c|. *. *.T| |000000a0| 68 69 73 20 69 73 20 61 | 20 73 75 70 70 6f 72 74 |his is a| support| |000000b0| 20 66 69 6c 65 20 66 6f | 72 20 22 47 72 61 6e 74 | file fo|r "Grant| |000000c0| 27 73 20 43 47 49 20 46 | 72 61 6d 65 77 6f 72 6b |'s CGI F|ramework| |000000d0| 22 2e 0d 20 2a 09 50 6c | 65 61 73 65 20 73 65 65 |".. *.Pl|ease see| |000000e0| 20 74 68 65 20 6c 69 63 | 65 6e 73 65 20 61 67 72 | the lic|ense agr| |000000f0| 65 65 6d 65 6e 74 20 74 | 68 61 74 20 61 63 63 6f |eement t|hat acco| |00000100| 6d 70 61 6e 69 65 73 20 | 74 68 65 20 64 69 73 74 |mpanies |the dist| |00000110| 72 69 62 75 74 69 6f 6e | 20 70 61 63 6b 61 67 65 |ribution| package| |00000120| 0d 20 2a 09 66 6f 72 20 | 6c 69 63 65 6e 73 69 6e |. *.for |licensin| |00000130| 67 20 64 65 74 61 69 6c | 73 2e 0d 20 2a 0d 20 2a |g detail|s.. *. *| |00000140| 09 43 6f 70 79 72 69 67 | 68 74 20 a9 31 39 39 35 |.Copyrig|ht .1995| |00000150| 20 62 79 20 47 72 61 6e | 74 20 4e 65 75 66 65 6c | by Gran|t Neufel| |00000160| 64 0d 20 2a 09 67 72 61 | 6e 74 40 61 63 6d 2e 63 |d. *.gra|nt@acm.c| |00000170| 6f 6d 0d 20 2a 09 68 74 | 74 70 3a 2f 2f 61 72 70 |om. *.ht|tp://arp| |00000180| 70 31 2e 63 61 72 6c 65 | 74 6f 6e 2e 63 61 2f 67 |p1.carle|ton.ca/g| |00000190| 72 61 6e 74 2f 0d 20 2a | 0d 20 2a 2a 2a 2a 2a 2f |rant/. *|. *****/| |000001a0| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 4d 79 43 6f |..#inclu|de "MyCo| |000001b0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 2e 68 22 0d 23 |nfigurat|ion.h".#| |000001c0| 69 66 20 6b 43 6f 6d 70 | 69 6c 65 57 69 74 68 46 |if kComp|ileWithF| |000001d0| 6f 72 65 67 72 6f 75 6e | 64 0d 0d 23 69 6e 63 6c |oregroun|d..#incl| |000001e0| 75 64 65 20 22 63 6f 6d | 70 69 6c 65 72 5f 73 74 |ude "com|piler_st| |000001f0| 75 66 66 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |uff.h".#|include | |00000200| 22 67 6c 6f 62 61 6c 73 | 2e 68 22 0d 0d 23 69 6e |"globals|.h"..#in| |00000210| 63 6c 75 64 65 20 22 41 | 62 6f 75 74 42 6f 78 2e |clude "A|boutBox.| |00000220| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 44 65 62 |h".#incl|ude "Deb| |00000230| 75 67 55 74 69 6c 2e 68 | 22 0d 23 69 6e 63 6c 75 |ugUtil.h|".#inclu| |00000240| 64 65 20 22 4d 65 6d 6f | 72 79 55 74 69 6c 2e 68 |de "Memo|ryUtil.h| |00000250| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 4d 65 6e 75 |".#inclu|de "Menu| |00000260| 46 75 6e 63 2e 68 22 0d | 0d 23 69 6e 63 6c 75 64 |Func.h".|.#includ| |00000270| 65 20 22 57 69 6e 64 6f | 77 49 6e 74 2e 68 22 0d |e "Windo|wInt.h".| |00000280| 0d 0d 2f 2a 2a 2a 20 20 | 4c 4f 43 41 4c 20 50 52 |../*** |LOCAL PR| |00000290| 4f 54 4f 54 59 50 45 53 | 20 2a 2a 2a 2f 0d 0d 73 |OTOTYPES| ***/..s| |000002a0| 74 61 74 69 63 09 42 6f | 6f 6c 65 61 6e 09 09 77 |tatic.Bo|olean..w| |000002b0| 69 6e 64 6f 77 56 61 6c | 69 64 09 09 09 09 28 20 |indowVal|id....( | |000002c0| 57 69 6e 64 6f 77 50 74 | 72 20 29 3b 0d 73 74 61 |WindowPt|r );.sta| |000002d0| 74 69 63 09 42 6f 6f 6c | 65 61 6e 09 09 77 69 6e |tic.Bool|ean..win| |000002e0| 64 6f 77 48 61 73 53 63 | 72 6f 6c 6c 62 61 72 73 |dowHasSc|rollbars| |000002f0| 09 09 28 20 57 69 6e 64 | 6f 77 50 74 72 20 29 3b |..( Wind|owPtr );| |00000300| 0d 73 74 61 74 69 63 09 | 76 6f 69 64 09 09 69 6e |.static.|void..in| |00000310| 76 61 6c 69 64 61 74 65 | 53 63 72 6f 6c 6c 62 61 |validate|Scrollba| |00000320| 72 73 09 28 20 57 69 6e | 64 6f 77 50 74 72 20 29 |rs.( Win|dowPtr )| |00000330| 3b 0d 0d 0d 2f 2a 2a 2a | 20 20 46 55 4e 43 54 49 |;.../***| FUNCTI| |00000340| 4f 4e 53 20 20 2a 2a 2a | 2f 0d 0d 2f 2a 20 4d 45 |ONS ***|/../* ME| |00000350| 4e 55 20 53 45 4c 45 43 | 54 49 4f 4e 20 48 41 4e |NU SELEC|TION HAN| |00000360| 44 4c 49 4e 47 20 2a 2f | 0d 0d 2f 2a 20 20 2a 2f |DLING */|../* */| |00000370| 0d 76 6f 69 64 0d 57 69 | 6e 64 6f 77 4d 65 6e 75 |.void.Wi|ndowMenu| |00000380| 43 6c 6f 73 65 20 28 20 | 73 68 6f 72 74 20 6d 6f |Close ( |short mo| |00000390| 64 69 66 69 65 72 73 20 | 29 0d 7b 0d 09 57 69 6e |difiers |).{..Win| |000003a0| 64 6f 77 43 6c 6f 73 65 | 20 28 20 6e 69 6c 2c 20 |dowClose| ( nil, | |000003b0| 6d 6f 64 69 66 69 65 72 | 73 2c 20 74 72 75 65 20 |modifier|s, true | |000003c0| 29 3b 0d 7d 20 2f 2a 20 | 57 69 6e 64 6f 77 4d 65 |);.} /* |WindowMe| |000003d0| 6e 75 43 6c 6f 73 65 20 | 2a 2f 0d 0d 0d 2f 2a 20 |nuClose |*/.../* | |000003e0| 45 56 45 4e 54 20 48 41 | 4e 44 4c 49 4e 47 20 2a |EVENT HA|NDLING *| |000003f0| 2f 0d 0d 2f 2a 20 49 20 | 74 68 69 6e 6b 20 74 68 |/../* I |think th| |00000400| 61 74 20 73 74 61 74 65 | 20 73 68 6f 75 6c 64 20 |at state| should | |00000410| 62 65 20 74 72 75 65 20 | 69 66 20 69 74 20 69 73 |be true |if it is| |00000420| 20 61 63 74 69 76 61 74 | 69 6e 67 2c 20 66 61 6c | activat|ing, fal| |00000430| 73 65 20 69 66 20 64 65 | 61 63 74 69 76 61 74 69 |se if de|activati| |00000440| 6e 67 2e 0d 09 49 4d 2d | 4d 54 45 3a 20 32 2d 35 |ng...IM-|MTE: 2-5| |00000450| 33 2c 35 34 20 2a 2f 0d | 76 6f 69 64 0d 57 69 6e |3,54 */.|void.Win| |00000460| 64 6f 77 41 63 74 69 76 | 61 74 65 20 28 20 57 69 |dowActiv|ate ( Wi| |00000470| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo| |00000480| 77 2c 20 42 6f 6f 6c 65 | 61 6e 20 61 63 74 69 76 |w, Boole|an activ| |00000490| 61 74 65 2c 20 63 6f 6e | 73 74 20 45 76 65 6e 74 |ate, con|st Event| |000004a0| 52 65 63 6f 72 64 20 2a | 74 68 65 45 76 65 6e 74 |Record *|theEvent| |000004b0| 20 29 0d 7b 0d 09 77 69 | 6e 64 6f 77 5f 74 79 70 | ).{..wi|ndow_typ| |000004c0| 65 09 09 77 69 6e 64 54 | 79 70 65 3b 0d 09 0d 09 |e..windT|ype;....| |000004d0| 77 69 6e 64 54 79 70 65 | 20 3d 20 57 69 6e 64 6f |windType| = Windo| |000004e0| 77 54 79 70 65 20 28 20 | 74 68 65 57 69 6e 64 6f |wType ( |theWindo| |000004f0| 77 20 29 3b 0d 09 0d 09 | 2f 2a 20 72 65 73 74 6f |w );....|/* resto| |00000500| 72 65 20 6f 72 20 68 69 | 64 65 2f 72 65 64 75 63 |re or hi|de/reduc| |00000510| 65 2d 74 6f 2d 6f 75 74 | 6c 69 6e 65 20 77 69 6e |e-to-out|line win| |00000520| 64 6f 77 27 73 20 73 65 | 6c 65 63 74 69 6f 6e 73 |dow's se|lections| |00000530| 20 2a 2f 0d 09 73 77 69 | 74 63 68 20 28 20 77 69 | */..swi|tch ( wi| |00000540| 6e 64 54 79 70 65 20 29 | 0d 09 7b 0d 09 09 23 69 |ndType )|..{...#i| |00000550| 66 20 6b 43 6f 6d 70 69 | 6c 65 57 69 74 68 41 70 |f kCompi|leWithAp| |00000560| 70 6c 69 63 61 74 69 6f | 6e 57 69 6e 64 6f 77 73 |plicatio|nWindows| |00000570| 0d 09 09 63 61 73 65 20 | 57 69 6e 64 6f 77 5f 41 |...case |Window_A| |00000580| 70 70 6c 69 63 61 74 69 | 6f 6e 20 3a 0d 09 09 09 |pplicati|on :....| |00000590| 4d 79 41 63 74 69 76 61 | 74 65 57 69 6e 64 6f 77 |MyActiva|teWindow| |000005a0| 20 28 20 74 68 65 57 69 | 6e 64 6f 77 2c 20 61 63 | ( theWi|ndow, ac| |000005b0| 74 69 76 61 74 65 20 29 | 3b 0d 09 09 09 62 72 65 |tivate )|;....bre| |000005c0| 61 6b 3b 0d 09 09 23 65 | 6e 64 69 66 0d 09 09 0d |ak;...#e|ndif....| |000005d0| 09 09 63 61 73 65 20 57 | 69 6e 64 6f 77 5f 64 6c |..case W|indow_dl| |000005e0| 67 4d 6f 64 61 6c 20 3a | 0d 09 09 63 61 73 65 20 |gModal :|...case | |000005f0| 57 69 6e 64 6f 77 5f 64 | 6c 67 4d 6f 76 65 61 62 |Window_d|lgMoveab| |00000600| 6c 65 4d 6f 64 61 6c 20 | 3a 0d 09 09 63 61 73 65 |leModal |:...case| |00000610| 20 57 69 6e 64 6f 77 5f | 61 62 6f 75 74 20 3a 0d | Window_|about :.| |00000620| 09 09 63 61 73 65 20 57 | 69 6e 64 6f 77 5f 44 41 |..case W|indow_DA| |00000630| 20 3a 0d 09 09 63 61 73 | 65 20 57 69 6e 64 6f 77 | :...cas|e Window| |00000640| 5f 55 4e 4b 4e 4f 57 4e | 20 3a 0d 09 09 64 65 66 |_UNKNOWN| :...def| |00000650| 61 75 6c 74 20 3a 0d 09 | 09 09 62 72 65 61 6b 3b |ault :..|..break;| |00000660| 0d 09 7d 0d 09 0d 09 69 | 66 20 28 20 61 63 74 69 |..}....i|f ( acti| |00000670| 76 61 74 65 20 29 0d 09 | 7b 0d 09 09 2f 2a 20 73 |vate )..|{.../* s| |00000680| 68 6f 77 20 73 63 72 6f | 6c 6c 20 62 61 72 73 20 |how scro|ll bars | |00000690| 69 66 20 6e 65 63 65 73 | 73 61 72 79 20 2a 2f 0d |if neces|sary */.| |000006a0| 09 09 0d 09 09 61 64 6a | 75 73 74 4d 65 6e 75 73 |.....adj|ustMenus| |000006b0| 20 28 29 3b 0d 09 7d 0d | 09 65 6c 73 65 0d 09 7b | ();..}.|.else..{| |000006c0| 0d 09 09 2f 2a 20 68 69 | 64 65 20 73 63 72 6f 6c |.../* hi|de scrol| |000006d0| 6c 20 62 61 72 73 20 69 | 66 20 6e 65 63 65 73 73 |l bars i|f necess| |000006e0| 61 72 79 20 2a 2f 0d 09 | 7d 0d 7d 20 2f 2a 20 57 |ary */..|}.} /* W| |000006f0| 69 6e 64 6f 77 41 63 74 | 69 76 61 74 65 20 2a 2f |indowAct|ivate */| |00000700| 0d 0d 0d 2f 2a 20 20 2a | 2f 0d 76 6f 69 64 0d 57 |.../* *|/.void.W| |00000710| 69 6e 64 6f 77 55 70 64 | 61 74 65 20 28 20 57 69 |indowUpd|ate ( Wi| |00000720| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo| |00000730| 77 20 29 0d 7b 0d 09 47 | 72 61 66 50 74 72 09 09 |w ).{..G|rafPtr..| |00000740| 09 6f 6c 64 50 6f 72 74 | 3b 0d 09 77 69 6e 64 6f |.oldPort|;..windo| |00000750| 77 5f 74 79 70 65 09 09 | 77 69 6e 64 6f 77 54 79 |w_type..|windowTy| |00000760| 70 65 3b 0d 09 0d 09 77 | 69 6e 64 6f 77 54 79 70 |pe;....w|indowTyp| |00000770| 65 09 3d 20 57 69 6e 64 | 6f 77 54 79 70 65 20 28 |e.= Wind|owType (| |00000780| 20 74 68 65 57 69 6e 64 | 6f 77 20 29 3b 0d 09 0d | theWind|ow );...| |00000790| 09 69 66 20 28 20 21 28 | 77 69 6e 64 6f 77 54 79 |.if ( !(|windowTy| |000007a0| 70 65 20 3d 3d 20 57 69 | 6e 64 6f 77 5f 44 41 29 |pe == Wi|ndow_DA)| |000007b0| 20 29 0d 09 7b 0d 09 09 | 47 65 74 50 6f 72 74 09 | )..{...|GetPort.| |000007c0| 09 28 20 26 6f 6c 64 50 | 6f 72 74 20 29 3b 0d 09 |.( &oldP|ort );..| |000007d0| 09 53 65 74 50 6f 72 74 | 09 09 28 20 28 47 72 61 |.SetPort|..( (Gra| |000007e0| 66 50 74 72 29 74 68 65 | 57 69 6e 64 6f 77 20 29 |fPtr)the|Window )| |000007f0| 3b 0d 09 09 42 65 67 69 | 6e 55 70 64 61 74 65 09 |;...Begi|nUpdate.| |00000800| 28 20 74 68 65 57 69 6e | 64 6f 77 20 29 3b 0d 0d |( theWin|dow );..| |00000810| 09 09 73 77 69 74 63 68 | 20 28 20 77 69 6e 64 6f |..switch| ( windo| |00000820| 77 54 79 70 65 20 29 0d | 09 09 7b 0d 09 09 09 63 |wType ).|..{....c| |00000830| 61 73 65 20 57 69 6e 64 | 6f 77 5f 61 62 6f 75 74 |ase Wind|ow_about| |00000840| 20 3a 0d 09 09 09 09 41 | 62 6f 75 74 42 6f 78 55 | :.....A|boutBoxU| |00000850| 70 64 61 74 65 20 28 29 | 3b 0d 09 09 09 09 62 72 |pdate ()|;.....br| |00000860| 65 61 6b 3b 0d 09 09 09 | 0d 09 09 09 63 61 73 65 |eak;....|....case| |00000870| 20 57 69 6e 64 6f 77 5f | 55 4e 4b 4e 4f 57 4e 20 | Window_|UNKNOWN | |00000880| 3a 0d 09 09 09 09 6d 79 | 5f 61 73 73 65 72 74 20 |:.....my|_assert | |00000890| 28 20 6b 46 6f 72 63 65 | 41 73 73 65 72 74 2c 20 |( kForce|Assert, | |000008a0| 22 5c 70 57 69 6e 64 6f | 77 55 70 64 61 74 65 3a |"\pWindo|wUpdate:| |000008b0| 20 55 6e 6b 6e 6f 77 6e | 20 77 69 6e 64 6f 77 20 | Unknown| window | |000008c0| 74 79 70 65 22 20 29 3b | 0d 09 09 09 09 62 72 65 |type" );|.....bre| |000008d0| 61 6b 3b 0d 09 09 09 0d | 09 09 09 63 61 73 65 20 |ak;.....|...case | |000008e0| 57 69 6e 64 6f 77 5f 64 | 6c 67 4d 6f 64 61 6c 20 |Window_d|lgModal | |000008f0| 3a 0d 09 09 09 63 61 73 | 65 20 57 69 6e 64 6f 77 |:....cas|e Window| |00000900| 5f 64 6c 67 4d 6f 76 65 | 61 62 6c 65 4d 6f 64 61 |_dlgMove|ableModa| |00000910| 6c 20 3a 0d 09 09 09 63 | 61 73 65 20 57 69 6e 64 |l :....c|ase Wind| |00000920| 6f 77 5f 6e 6f 6e 65 20 | 3a 0d 09 09 09 09 62 72 |ow_none |:.....br| |00000930| 65 61 6b 3b 0d 09 09 09 | 0d 09 09 09 23 69 66 20 |eak;....|....#if | |00000940| 6b 43 6f 6d 70 69 6c 65 | 57 69 74 68 41 70 70 6c |kCompile|WithAppl| |00000950| 69 63 61 74 69 6f 6e 57 | 69 6e 64 6f 77 73 0d 09 |icationW|indows..| |00000960| 09 09 63 61 73 65 20 57 | 69 6e 64 6f 77 5f 41 70 |..case W|indow_Ap| |00000970| 70 6c 69 63 61 74 69 6f | 6e 20 3a 0d 09 09 09 23 |plicatio|n :....#| |00000980| 65 6e 64 69 66 0d 09 09 | 09 64 65 66 61 75 6c 74 |endif...|.default| |00000990| 20 3a 0d 09 09 09 09 2f | 2a 20 63 61 6c 6c 20 63 | :...../|* call c| |000009a0| 75 73 74 6f 6d 20 77 69 | 6e 64 6f 77 20 75 70 64 |ustom wi|ndow upd| |000009b0| 61 74 65 20 70 72 6f 63 | 65 64 75 72 65 20 2a 2f |ate proc|edure */| |000009c0| 0d 09 09 09 09 23 69 66 | 20 6b 43 6f 6d 70 69 6c |.....#if| kCompil| |000009d0| 65 57 69 74 68 41 70 70 | 6c 69 63 61 74 69 6f 6e |eWithApp|lication| |000009e0| 57 69 6e 64 6f 77 73 0d | 09 09 09 09 4d 79 55 70 |Windows.|....MyUp| |000009f0| 64 61 74 65 57 69 6e 64 | 6f 77 20 28 20 74 68 65 |dateWind|ow ( the| |00000a00| 57 69 6e 64 6f 77 20 29 | 3b 0d 09 09 09 09 23 65 |Window )|;.....#e| |00000a10| 6e 64 69 66 0d 09 09 09 | 09 62 72 65 61 6b 3b 0d |ndif....|.break;.| |00000a20| 09 09 7d 0d 09 09 0d 09 | 09 45 6e 64 55 70 64 61 |..}.....|.EndUpda| |00000a30| 74 65 09 28 20 74 68 65 | 57 69 6e 64 6f 77 20 29 |te.( the|Window )| |00000a40| 3b 0d 09 09 53 65 74 50 | 6f 72 74 09 09 28 20 6f |;...SetP|ort..( o| |00000a50| 6c 64 50 6f 72 74 20 29 | 3b 0d 09 7d 0d 7d 20 2f |ldPort )|;..}.} /| |00000a60| 2a 20 57 69 6e 64 6f 77 | 55 70 64 61 74 65 20 2a |* Window|Update *| |00000a70| 2f 0d 0d 0d 2f 2a 20 4d | 4f 55 53 45 20 43 4c 49 |/.../* M|OUSE CLI| |00000a80| 43 4b 20 48 41 4e 44 4c | 49 4e 47 20 2a 2f 0d 0d |CK HANDL|ING */..| |00000a90| 2f 2a 20 73 65 65 20 74 | 68 65 20 63 6f 6e 74 72 |/* see t|he contr| |00000aa0| 6f 6c 20 6d 61 6e 61 67 | 65 72 20 63 68 61 70 74 |ol manag|er chapt| |00000ab0| 65 72 20 69 6e 20 49 4d | 2d 4d 54 45 20 66 6f 72 |er in IM|-MTE for| |00000ac0| 20 61 6e 20 65 78 61 6d | 70 6c 65 20 44 6f 43 6f | an exam|ple DoCo| |00000ad0| 6e 74 65 6e 74 43 6c 69 | 63 6b 20 70 72 6f 63 65 |ntentCli|ck proce| |00000ae0| 64 75 72 65 0d 09 77 61 | 73 20 64 6f 49 6e 43 6f |dure..wa|s doInCo| |00000af0| 6e 74 65 6e 74 20 2a 2f | 0d 76 6f 69 64 20 0d 57 |ntent */|.void .W| |00000b00| 69 6e 64 6f 77 43 6f 6e | 74 65 6e 74 43 6c 69 63 |indowCon|tentClic| |00000b10| 6b 20 28 20 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |k ( Wind|owPtr th| |00000b20| 65 57 69 6e 64 6f 77 2c | 20 63 6f 6e 73 74 20 45 |eWindow,| const E| |00000b30| 76 65 6e 74 52 65 63 6f | 72 64 20 2a 65 76 65 6e |ventReco|rd *even| |00000b40| 74 50 74 72 2c 20 42 6f | 6f 6c 65 61 6e 20 2a 6f |tPtr, Bo|olean *o| |00000b50| 6e 49 74 65 6d 20 29 0d | 7b 0d 09 50 6f 69 6e 74 |nItem ).|{..Point| |00000b60| 09 09 09 77 68 65 72 65 | 43 6c 69 63 6b 65 64 3b |...where|Clicked;| |00000b70| 0d 09 77 69 6e 64 6f 77 | 5f 74 79 70 65 09 09 77 |..window|_type..w| |00000b80| 69 6e 64 6f 77 54 79 70 | 65 3b 0d 09 47 72 61 66 |indowTyp|e;..Graf| |00000b90| 50 74 72 09 09 09 73 61 | 76 65 50 6f 72 74 3b 0d |Ptr...sa|vePort;.| |00000ba0| 09 0d 09 77 68 65 72 65 | 43 6c 69 63 6b 65 64 20 |...where|Clicked | |00000bb0| 3d 20 65 76 65 6e 74 50 | 74 72 2d 3e 77 68 65 72 |= eventP|tr->wher| |00000bc0| 65 3b 0d 09 0d 09 47 65 | 74 50 6f 72 74 09 09 09 |e;....Ge|tPort...| |00000bd0| 28 20 26 73 61 76 65 50 | 6f 72 74 20 29 3b 0d 09 |( &saveP|ort );..| |00000be0| 53 65 74 50 6f 72 74 09 | 09 09 28 20 28 47 72 61 |SetPort.|..( (Gra| |00000bf0| 66 50 74 72 29 74 68 65 | 57 69 6e 64 6f 77 20 29 |fPtr)the|Window )| |00000c00| 3b 0d 09 47 6c 6f 62 61 | 6c 54 6f 4c 6f 63 61 6c |;..Globa|lToLocal| |00000c10| 09 28 20 26 77 68 65 72 | 65 43 6c 69 63 6b 65 64 |.( &wher|eClicked| |00000c20| 20 29 3b 0d 09 53 65 74 | 50 6f 72 74 09 09 09 28 | );..Set|Port...(| |00000c30| 20 73 61 76 65 50 6f 72 | 74 20 29 3b 0d 09 0d 09 | savePor|t );....| |00000c40| 77 69 6e 64 6f 77 54 79 | 70 65 20 3d 20 57 69 6e |windowTy|pe = Win| |00000c50| 64 6f 77 54 79 70 65 20 | 28 20 74 68 65 57 69 6e |dowType |( theWin| |00000c60| 64 6f 77 20 29 3b 0d 09 | 0d 09 73 77 69 74 63 68 |dow );..|..switch| |00000c70| 20 28 20 77 69 6e 64 6f | 77 54 79 70 65 20 29 0d | ( windo|wType ).| |00000c80| 09 7b 0d 09 09 63 61 73 | 65 20 57 69 6e 64 6f 77 |.{...cas|e Window| |00000c90| 5f 55 4e 4b 4e 4f 57 4e | 20 3a 0d 09 09 09 6d 79 |_UNKNOWN| :....my| |00000ca0| 5f 61 73 73 65 72 74 20 | 28 20 6b 46 6f 72 63 65 |_assert |( kForce| |00000cb0| 41 73 73 65 72 74 2c 20 | 22 5c 70 57 69 6e 64 6f |Assert, |"\pWindo| |00000cc0| 77 43 6c 6f 73 65 3a 20 | 75 6e 6b 6e 6f 77 6e 20 |wClose: |unknown | |00000cd0| 77 69 6e 64 6f 77 20 74 | 79 70 65 22 20 29 3b 0d |window t|ype" );.| |00000ce0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 0d 09 09 63 |...break|;......c| |00000cf0| 61 73 65 20 57 69 6e 64 | 6f 77 5f 61 62 6f 75 74 |ase Wind|ow_about| |00000d00| 20 3a 0d 09 09 63 61 73 | 65 20 57 69 6e 64 6f 77 | :...cas|e Window| |00000d10| 5f 64 6c 67 4d 6f 64 61 | 6c 20 3a 0d 09 09 63 61 |_dlgModa|l :...ca| |00000d20| 73 65 20 57 69 6e 64 6f | 77 5f 64 6c 67 4d 6f 76 |se Windo|w_dlgMov| |00000d30| 65 61 62 6c 65 4d 6f 64 | 61 6c 20 3a 0d 09 09 63 |eableMod|al :...c| |00000d40| 61 73 65 20 57 69 6e 64 | 6f 77 5f 44 41 20 3a 0d |ase Wind|ow_DA :.| |00000d50| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 0d 09 09 |...break|;.......| |00000d60| 2f 2a 20 4e 4f 54 45 3a | 20 75 6e 72 65 63 6f 67 |/* NOTE:| unrecog| |00000d70| 6e 69 7a 65 64 20 77 69 | 6e 64 6f 77 73 20 77 69 |nized wi|ndows wi| |00000d80| 6c 6c 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |ll be pa|ssed to | |00000d90| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 0d |the appl|ication.| |00000da0| 09 09 09 66 6f 72 20 63 | 6c 69 63 6b 73 2e 20 2a |...for c|licks. *| |00000db0| 2f 0d 09 09 23 69 66 20 | 6b 43 6f 6d 70 69 6c 65 |/...#if |kCompile| |00000dc0| 57 69 74 68 41 70 70 6c | 69 63 61 74 69 6f 6e 57 |WithAppl|icationW| |00000dd0| 69 6e 64 6f 77 73 0d 09 | 09 63 61 73 65 20 57 69 |indows..|.case Wi| |00000de0| 6e 64 6f 77 5f 41 70 70 | 6c 69 63 61 74 69 6f 6e |ndow_App|lication| |00000df0| 20 3a 0d 09 09 23 65 6e | 64 69 66 0d 09 09 64 65 | :...#en|dif...de| |00000e00| 66 61 75 6c 74 20 3a 0d | 09 09 09 23 69 66 20 6b |fault :.|...#if k| |00000e10| 43 6f 6d 70 69 6c 65 57 | 69 74 68 41 70 70 6c 69 |CompileW|ithAppli| |00000e20| 63 61 74 69 6f 6e 57 69 | 6e 64 6f 77 73 0d 09 09 |cationWi|ndows...| |00000e30| 09 4d 79 43 6c 69 63 6b | 49 6e 57 69 6e 64 6f 77 |.MyClick|InWindow| |00000e40| 20 28 20 74 68 65 57 69 | 6e 64 6f 77 2c 20 77 68 | ( theWi|ndow, wh| |00000e50| 65 72 65 43 6c 69 63 6b | 65 64 2c 20 6f 6e 49 74 |ereClick|ed, onIt| |00000e60| 65 6d 20 29 3b 0d 09 09 | 09 23 65 6e 64 69 66 0d |em );...|.#endif.| |00000e70| 09 09 09 62 72 65 61 6b | 3b 0d 09 7d 0d 7d 20 2f |...break|;..}.} /| |00000e80| 2a 20 57 69 6e 64 6f 77 | 43 6f 6e 74 65 6e 74 43 |* Window|ContentC| |00000e90| 6c 69 63 6b 20 2a 2f 0d | 0d 0d 2f 2a 20 77 61 73 |lick */.|../* was| |00000ea0| 20 64 6f 5a 6f 6f 6d 42 | 6f 78 20 2a 2f 0d 76 6f | doZoomB|ox */.vo| |00000eb0| 69 64 0d 57 69 6e 64 6f | 77 5a 6f 6f 6d 42 6f 78 |id.Windo|wZoomBox| |00000ec0| 20 28 20 57 69 6e 64 6f | 77 50 74 72 20 74 68 65 | ( Windo|wPtr the| |00000ed0| 57 69 6e 64 6f 77 2c 20 | 73 68 6f 72 74 20 70 61 |Window, |short pa| |00000ee0| 72 74 43 6f 64 65 20 29 | 0d 7b 0d 09 47 72 61 66 |rtCode )|.{..Graf| |00000ef0| 50 74 72 09 73 61 76 65 | 50 6f 72 74 3b 0d 09 0d |Ptr.save|Port;...| |00000f00| 09 47 65 74 50 6f 72 74 | 20 28 20 26 73 61 76 65 |.GetPort| ( &save| |00000f10| 50 6f 72 74 20 29 3b 0d | 09 53 65 74 50 6f 72 74 |Port );.|.SetPort| |00000f20| 20 28 20 74 68 65 57 69 | 6e 64 6f 77 20 29 3b 0d | ( theWi|ndow );.| |00000f30| 0d 09 45 72 61 73 65 52 | 65 63 74 20 28 20 26 74 |..EraseR|ect ( &t| |00000f40| 68 65 57 69 6e 64 6f 77 | 2d 3e 70 6f 72 74 52 65 |heWindow|->portRe| |00000f50| 63 74 20 29 3b 0d 09 5a | 6f 6f 6d 57 69 6e 64 6f |ct );..Z|oomWindo| |00000f60| 77 20 28 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 70 |w ( theW|indow, p| |00000f70| 61 72 74 43 6f 64 65 2c | 20 66 61 6c 73 65 20 29 |artCode,| false )| |00000f80| 3b 0d 0d 09 69 6e 76 61 | 6c 69 64 61 74 65 53 63 |;...inva|lidateSc| |00000f90| 72 6f 6c 6c 62 61 72 73 | 20 28 20 74 68 65 57 69 |rollbars| ( theWi| |00000fa0| 6e 64 6f 77 20 29 3b 0d | 09 0d 09 2f 2a 20 73 65 |ndow );.|.../* se| |00000fb0| 74 75 70 20 66 6f 72 20 | 72 65 64 72 61 77 20 2a |tup for |redraw *| |00000fc0| 2f 0d 09 49 6e 76 61 6c | 52 65 63 74 20 28 20 26 |/..Inval|Rect ( &| |00000fd0| 74 68 65 57 69 6e 64 6f | 77 2d 3e 70 6f 72 74 52 |theWindo|w->portR| |00000fe0| 65 63 74 20 29 3b 0d 0d | 09 53 65 74 50 6f 72 74 |ect );..|.SetPort| |00000ff0| 20 28 20 73 61 76 65 50 | 6f 72 74 20 29 3b 0d 7d | ( saveP|ort );.}| |00001000| 20 2f 2a 20 57 69 6e 64 | 6f 77 5a 6f 6f 6d 42 6f | /* Wind|owZoomBo| |00001010| 78 20 2a 2f 0d 0d 0d 2f | 2a 20 77 61 73 20 64 6f |x */.../|* was do| |00001020| 47 72 6f 77 57 69 6e 64 | 6f 77 20 2a 2f 0d 76 6f |GrowWind|ow */.vo| |00001030| 69 64 20 0d 57 69 6e 64 | 6f 77 47 72 6f 77 20 28 |id .Wind|owGrow (| |00001040| 20 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 57 69 | WindowP|tr theWi| |00001050| 6e 64 6f 77 2c 20 50 6f | 69 6e 74 20 74 68 65 50 |ndow, Po|int theP| |00001060| 6f 69 6e 74 20 29 0d 7b | 0d 09 6c 6f 6e 67 09 6e |oint ).{|..long.n| |00001070| 65 77 53 69 7a 65 3b 0d | 09 52 65 63 74 09 6c 69 |ewSize;.|.Rect.li| |00001080| 6d 69 74 52 65 63 74 3b | 0d 09 0d 09 2f 2a 20 73 |mitRect;|..../* s| |00001090| 65 74 20 6d 61 78 69 6d | 75 6d 20 73 69 7a 65 20 |et maxim|um size | |000010a0| 6f 66 20 77 69 6e 64 6f | 77 20 74 6f 20 65 6e 74 |of windo|w to ent| |000010b0| 69 72 65 20 6d 6f 6e 69 | 74 6f 72 28 73 29 20 61 |ire moni|tor(s) a| |000010c0| 72 65 61 20 2a 2f 0d 09 | 6c 69 6d 69 74 52 65 63 |rea */..|limitRec| |000010d0| 74 09 09 3d 20 67 47 72 | 61 79 52 67 6e 52 65 63 |t..= gGr|ayRgnRec| |000010e0| 74 3b 0d 09 2f 2a 20 73 | 65 74 20 6d 69 6e 69 6d |t;../* s|et minim| |000010f0| 75 6d 20 73 69 7a 65 20 | 6f 66 20 77 69 6e 64 6f |um size |of windo| |00001100| 77 20 2a 2f 0d 09 6c 69 | 6d 69 74 52 65 63 74 2e |w */..li|mitRect.| |00001110| 6c 65 66 74 09 3d 20 6b | 4d 69 6e 57 69 6e 64 53 |left.= k|MinWindS| |00001120| 69 7a 65 3b 0d 09 6c 69 | 6d 69 74 52 65 63 74 2e |ize;..li|mitRect.| |00001130| 74 6f 70 09 3d 20 6b 4d | 69 6e 57 69 6e 64 53 69 |top.= kM|inWindSi| |00001140| 7a 65 3b 0d 09 0d 09 2f | 2a 20 74 72 61 63 6b 20 |ze;..../|* track | |00001150| 75 73 65 72 20 6d 6f 75 | 73 65 20 61 6e 64 20 67 |user mou|se and g| |00001160| 72 6f 77 20 74 68 65 20 | 77 69 6e 64 6f 77 20 2a |row the |window *| |00001170| 2f 0d 09 6e 65 77 53 69 | 7a 65 20 3d 20 47 72 6f |/..newSi|ze = Gro| |00001180| 77 57 69 6e 64 6f 77 20 | 28 20 74 68 65 57 69 6e |wWindow |( theWin| |00001190| 64 6f 77 2c 20 74 68 65 | 50 6f 69 6e 74 2c 20 26 |dow, the|Point, &| |000011a0| 6c 69 6d 69 74 52 65 63 | 74 20 29 3b 0d 09 0d 09 |limitRec|t );....| |000011b0| 69 66 20 28 20 6e 65 77 | 53 69 7a 65 20 21 3d 20 |if ( new|Size != | |000011c0| 6e 69 6c 20 29 0d 09 7b | 0d 09 09 2f 2a 20 65 72 |nil )..{|.../* er| |000011d0| 61 73 65 20 61 6e 64 20 | 69 6e 76 61 6c 69 64 61 |ase and |invalida| |000011e0| 74 65 20 73 63 72 6f 6c | 6c 20 62 61 72 20 61 72 |te scrol|l bar ar| |000011f0| 65 61 20 2a 2f 0d 09 09 | 69 6e 76 61 6c 69 64 61 |ea */...|invalida| |00001200| 74 65 53 63 72 6f 6c 6c | 62 61 72 73 20 28 20 74 |teScroll|bars ( t| |00001210| 68 65 57 69 6e 64 6f 77 | 20 29 3b 0d 09 09 0d 09 |heWindow| );.....| |00001220| 09 53 69 7a 65 57 69 6e | 64 6f 77 20 28 20 74 68 |.SizeWin|dow ( th| |00001230| 65 57 69 6e 64 6f 77 2c | 20 4c 6f 57 6f 72 64 28 |eWindow,| LoWord(| |00001240| 6e 65 77 53 69 7a 65 29 | 2c 20 48 69 57 6f 72 64 |newSize)|, HiWord| |00001250| 28 6e 65 77 53 69 7a 65 | 29 2c 20 74 72 75 65 20 |(newSize|), true | |00001260| 29 3b 0d 0d 09 09 2f 2a | 20 72 65 6c 6f 63 61 74 |);..../*| relocat| |00001270| 65 20 73 63 72 6f 6c 6c | 20 62 61 72 73 2c 20 74 |e scroll| bars, t| |00001280| 68 65 6e 20 65 72 61 73 | 65 20 61 6e 64 20 69 76 |hen eras|e and iv| |00001290| 61 6c 69 64 61 74 65 20 | 73 63 72 6f 6c 6c 20 62 |alidate |scroll b| |000012a0| 61 72 20 61 72 65 61 20 | 2a 2f 0d 09 09 69 6e 76 |ar area |*/...inv| |000012b0| 61 6c 69 64 61 74 65 53 | 63 72 6f 6c 6c 62 61 72 |alidateS|crollbar| |000012c0| 73 20 28 20 74 68 65 57 | 69 6e 64 6f 77 20 29 3b |s ( theW|indow );| |000012d0| 0d 09 7d 0d 7d 20 2f 2a | 20 57 69 6e 64 6f 77 47 |..}.} /*| WindowG| |000012e0| 72 6f 77 20 2a 2f 0d 0d | 0d 2f 2a 20 20 2a 2f 0d |row */..|./* */.| |000012f0| 23 70 72 61 67 6d 61 20 | 6d 61 72 6b 20 2d 0d 0d |#pragma |mark -..| |00001300| 2f 2a 20 77 61 73 20 64 | 6f 43 6c 6f 73 65 57 69 |/* was d|oCloseWi| |00001310| 6e 64 6f 77 20 2a 2f 0d | 42 6f 6f 6c 65 61 6e 0d |ndow */.|Boolean.| |00001320| 57 69 6e 64 6f 77 43 6c | 6f 73 65 20 28 20 57 69 |WindowCl|ose ( Wi| |00001330| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo| |00001340| 77 2c 20 73 68 6f 72 74 | 20 6d 6f 64 69 66 69 65 |w, short| modifie| |00001350| 72 73 2c 20 42 6f 6f 6c | 65 61 6e 20 75 73 65 72 |rs, Bool|ean user| |00001360| 49 6e 74 65 72 61 63 74 | 20 29 0d 7b 0d 09 57 69 |Interact| ).{..Wi| |00001370| 6e 64 6f 77 50 74 72 09 | 77 69 6e 64 6f 77 54 6f |ndowPtr.|windowTo| |00001380| 43 6c 6f 73 65 3b 0d 09 | 42 6f 6f 6c 65 61 6e 09 |Close;..|Boolean.| |00001390| 09 74 68 65 57 69 6e 64 | 6f 77 43 6c 6f 73 65 64 |.theWind|owClosed| |000013a0| 3b 0d 09 23 69 66 20 6b | 43 6f 6d 70 69 6c 65 57 |;..#if k|CompileW| |000013b0| 69 74 68 41 70 70 6c 69 | 63 61 74 69 6f 6e 57 69 |ithAppli|cationWi| |000013c0| 6e 64 6f 77 73 0d 09 4f | 53 45 72 72 09 09 74 68 |ndows..O|SErr..th| |000013d0| 65 45 72 72 3b 0d 09 23 | 65 6e 64 69 66 0d 09 0d |eErr;..#|endif...| |000013e0| 09 6d 79 5f 61 73 73 65 | 72 74 20 28 20 28 74 68 |.my_asse|rt ( (th| |000013f0| 65 57 69 6e 64 6f 77 20 | 3d 3d 20 6e 69 6c 29 20 |eWindow |== nil) | |00001400| 7c 7c 20 28 77 69 6e 64 | 6f 77 56 61 6c 69 64 28 ||| (wind|owValid(| |00001410| 74 68 65 57 69 6e 64 6f | 77 29 29 2c 20 22 5c 70 |theWindo|w)), "\p| |00001420| 57 69 6e 64 6f 77 43 6c | 6f 73 65 3a 20 69 6e 76 |WindowCl|ose: inv| |00001430| 61 6c 69 64 20 77 69 6e | 64 6f 77 22 20 29 3b 0d |alid win|dow" );.| |00001440| 09 0d 09 2f 2a 20 61 73 | 73 75 6d 65 20 66 75 6e |.../* as|sume fun| |00001450| 63 74 69 6f 6e 20 75 6e | 73 75 63 63 65 73 73 66 |ction un|successf| |00001460| 75 6c 20 75 6e 74 69 6c | 20 61 20 77 69 6e 64 6f |ul until| a windo| |00001470| 77 20 69 73 20 61 63 75 | 74 61 6c 6c 79 20 63 6c |w is acu|tally cl| |00001480| 6f 73 65 64 20 2a 2f 0d | 09 74 68 65 57 69 6e 64 |osed */.|.theWind| |00001490| 6f 77 43 6c 6f 73 65 64 | 20 3d 20 66 61 6c 73 65 |owClosed| = false| |000014a0| 3b 0d 09 0d 09 69 66 20 | 28 20 6d 6f 64 69 66 69 |;....if |( modifi| |000014b0| 65 72 73 20 26 20 6f 70 | 74 69 6f 6e 4b 65 79 20 |ers & op|tionKey | |000014c0| 29 0d 09 7b 0d 09 09 2f | 2a 20 69 66 20 74 68 65 |)..{.../|* if the| |000014d0| 20 6f 70 74 69 6f 6e 4b | 65 79 20 69 73 20 61 63 | optionK|ey is ac| |000014e0| 74 69 76 65 2c 20 74 72 | 79 20 74 6f 20 63 6c 6f |tive, tr|y to clo| |000014f0| 73 65 20 61 6c 6c 20 6f | 70 65 6e 20 77 69 6e 64 |se all o|pen wind| |00001500| 6f 77 73 20 2a 2f 0d 09 | 09 74 68 65 57 69 6e 64 |ows */..|.theWind| |00001510| 6f 77 43 6c 6f 73 65 64 | 20 3d 20 57 69 6e 64 6f |owClosed| = Windo| |00001520| 77 43 6c 6f 73 65 41 6c | 6c 20 28 20 75 73 65 72 |wCloseAl|l ( user| |00001530| 49 6e 74 65 72 61 63 74 | 20 29 3b 0d 09 7d 0d 09 |Interact| );..}..| |00001540| 65 6c 73 65 0d 09 7b 0d | 09 09 69 66 20 28 20 74 |else..{.|..if ( t| |00001550| 68 65 57 69 6e 64 6f 77 | 20 3d 3d 20 6e 69 6c 20 |heWindow| == nil | |00001560| 29 0d 09 09 7b 0d 09 09 | 09 77 69 6e 64 6f 77 54 |)...{...|.windowT| |00001570| 6f 43 6c 6f 73 65 20 3d | 20 46 72 6f 6e 74 57 69 |oClose =| FrontWi| |00001580| 6e 64 6f 77 20 28 29 3b | 0d 09 09 7d 0d 09 09 65 |ndow ();|...}...e| |00001590| 6c 73 65 0d 09 09 7b 0d | 09 09 09 77 69 6e 64 6f |lse...{.|...windo| |000015a0| 77 54 6f 43 6c 6f 73 65 | 20 3d 20 74 68 65 57 69 |wToClose| = theWi| |000015b0| 6e 64 6f 77 3b 0d 09 09 | 7d 0d 09 09 0d 09 09 2f |ndow;...|}....../| |000015c0| 2a 20 64 6f 20 74 68 65 | 20 61 70 70 72 6f 70 72 |* do the| appropr| |000015d0| 69 61 74 65 20 74 79 70 | 65 20 6f 66 20 63 6c 6f |iate typ|e of clo| |000015e0| 73 65 20 62 61 73 65 64 | 20 6f 6e 20 74 68 65 20 |se based| on the | |000015f0| 6b 69 6e 64 20 6f 66 20 | 77 69 6e 64 6f 77 20 2a |kind of |window *| |00001600| 2f 0d 09 09 73 77 69 74 | 63 68 20 28 20 57 69 6e |/...swit|ch ( Win| |00001610| 64 6f 77 54 79 70 65 28 | 20 77 69 6e 64 6f 77 54 |dowType(| windowT| |00001620| 6f 43 6c 6f 73 65 20 29 | 20 29 0d 09 09 7b 0d 09 |oClose )| )...{..| |00001630| 09 09 63 61 73 65 20 57 | 69 6e 64 6f 77 5f 61 62 |..case W|indow_ab| |00001640| 6f 75 74 20 3a 0d 09 09 | 09 09 41 62 6f 75 74 42 |out :...|..AboutB| |00001650| 6f 78 43 6c 6f 73 65 20 | 28 29 3b 0d 09 09 09 09 |oxClose |();.....| |00001660| 74 68 65 57 69 6e 64 6f | 77 43 6c 6f 73 65 64 20 |theWindo|wClosed | |00001670| 3d 20 74 72 75 65 3b 0d | 09 09 09 09 62 72 65 61 |= true;.|....brea| |00001680| 6b 3b 0d 09 09 09 0d 09 | 09 09 63 61 73 65 20 57 |k;......|..case W| |00001690| 69 6e 64 6f 77 5f 55 4e | 4b 4e 4f 57 4e 20 3a 0d |indow_UN|KNOWN :.| |000016a0| 09 09 09 09 6d 79 5f 61 | 73 73 65 72 74 20 28 20 |....my_a|ssert ( | |000016b0| 6b 46 6f 72 63 65 41 73 | 73 65 72 74 2c 20 22 5c |kForceAs|sert, "\| |000016c0| 70 57 69 6e 64 6f 77 43 | 6c 6f 73 65 3a 20 75 6e |pWindowC|lose: un| |000016d0| 6b 6e 6f 77 6e 20 77 69 | 6e 64 6f 77 20 74 79 70 |known wi|ndow typ| |000016e0| 65 22 20 29 3b 0d 09 09 | 09 09 62 72 65 61 6b 3b |e" );...|..break;| |000016f0| 0d 09 09 09 0d 09 09 09 | 63 61 73 65 20 57 69 6e |........|case Win| |00001700| 64 6f 77 5f 64 6c 67 4d | 6f 64 61 6c 20 3a 0d 09 |dow_dlgM|odal :..| |00001710| 09 09 63 61 73 65 20 57 | 69 6e 64 6f 77 5f 64 6c |..case W|indow_dl| |00001720| 67 4d 6f 76 65 61 62 6c | 65 4d 6f 64 61 6c 20 3a |gMoveabl|eModal :| |00001730| 0d 09 09 09 63 61 73 65 | 20 57 69 6e 64 6f 77 5f |....case| Window_| |00001740| 44 41 20 3a 0d 09 09 09 | 09 62 72 65 61 6b 3b 0d |DA :....|.break;.| |00001750| 09 09 09 09 0d 09 09 09 | 2f 2a 20 4e 4f 54 45 3a |........|/* NOTE:| |00001760| 20 75 6e 72 65 63 6f 67 | 6e 69 7a 65 64 20 77 69 | unrecog|nized wi| |00001770| 6e 64 6f 77 73 20 77 69 | 6c 6c 20 62 65 20 70 61 |ndows wi|ll be pa| |00001780| 73 73 65 64 20 74 6f 20 | 74 68 65 20 61 70 70 6c |ssed to |the appl| |00001790| 69 63 61 74 69 6f 6e 0d | 09 09 09 09 74 6f 20 63 |ication.|....to c| |000017a0| 6c 6f 73 65 2e 20 2a 2f | 0d 09 09 09 23 69 66 20 |lose. */|....#if | |000017b0| 6b 43 6f 6d 70 69 6c 65 | 57 69 74 68 41 70 70 6c |kCompile|WithAppl| |000017c0| 69 63 61 74 69 6f 6e 57 | 69 6e 64 6f 77 73 0d 09 |icationW|indows..| |000017d0| 09 09 63 61 73 65 20 57 | 69 6e 64 6f 77 5f 41 70 |..case W|indow_Ap| |000017e0| 70 6c 69 63 61 74 69 6f | 6e 20 3a 0d 09 09 09 23 |plicatio|n :....#| |000017f0| 65 6e 64 69 66 0d 09 09 | 09 64 65 66 61 75 6c 74 |endif...|.default| |00001800| 20 3a 0d 09 09 09 09 23 | 69 66 20 6b 43 6f 6d 70 | :.....#|if kComp| |00001810| 69 6c 65 57 69 74 68 41 | 70 70 6c 69 63 61 74 69 |ileWithA|pplicati| |00001820| 6f 6e 57 69 6e 64 6f 77 | 73 0d 09 09 09 09 74 68 |onWindow|s.....th| |00001830| 65 45 72 72 09 09 09 3d | 20 4d 79 43 6c 6f 73 65 |eErr...=| MyClose| |00001840| 57 69 6e 64 6f 77 20 28 | 20 77 69 6e 64 6f 77 54 |Window (| windowT| |00001850| 6f 43 6c 6f 73 65 20 29 | 3b 0d 09 09 09 09 74 68 |oClose )|;.....th| |00001860| 65 57 69 6e 64 6f 77 43 | 6c 6f 73 65 64 09 3d 20 |eWindowC|losed.= | |00001870| 28 74 68 65 45 72 72 20 | 3d 3d 20 6e 6f 45 72 72 |(theErr |== noErr| |00001880| 29 3b 0d 09 09 09 09 23 | 65 6e 64 69 66 0d 09 09 |);.....#|endif...| |00001890| 09 09 62 72 65 61 6b 3b | 0d 09 09 7d 0d 09 7d 0d |..break;|...}..}.| |000018a0| 09 0d 09 72 65 74 75 72 | 6e 20 74 68 65 57 69 6e |...retur|n theWin| |000018b0| 64 6f 77 43 6c 6f 73 65 | 64 3b 0d 7d 20 2f 2a 20 |dowClose|d;.} /* | |000018c0| 57 69 6e 64 6f 77 43 6c | 6f 73 65 20 2a 2f 0d 0d |WindowCl|ose */..| |000018d0| 0d 2f 2a 20 77 61 73 20 | 63 6c 6f 73 65 41 6c 6c |./* was |closeAll| |000018e0| 57 69 6e 64 6f 77 73 20 | 2a 2f 0d 42 6f 6f 6c 65 |Windows |*/.Boole| |000018f0| 61 6e 0d 57 69 6e 64 6f | 77 43 6c 6f 73 65 41 6c |an.Windo|wCloseAl| |00001900| 6c 20 28 20 42 6f 6f 6c | 65 61 6e 20 75 73 65 72 |l ( Bool|ean user| |00001910| 49 6e 74 65 72 61 63 74 | 20 29 0d 7b 0d 09 42 6f |Interact| ).{..Bo| |00001920| 6f 6c 65 61 6e 09 09 74 | 68 65 57 69 6e 64 6f 77 |olean..t|heWindow| |00001930| 73 43 6c 6f 73 65 64 3b | 0d 09 57 69 6e 64 6f 77 |sClosed;|..Window| |00001940| 50 74 72 09 74 68 65 57 | 69 6e 64 6f 77 3b 0d 09 |Ptr.theW|indow;..| |00001950| 0d 09 74 68 65 57 69 6e | 64 6f 77 73 43 6c 6f 73 |..theWin|dowsClos| |00001960| 65 64 09 3d 20 74 72 75 | 65 3b 0d 09 74 68 65 57 |ed.= tru|e;..theW| |00001970| 69 6e 64 6f 77 09 09 09 | 3d 20 46 72 6f 6e 74 57 |indow...|= FrontW| |00001980| 69 6e 64 6f 77 20 28 29 | 3b 0d 09 0d 09 69 66 20 |indow ()|;....if | |00001990| 28 20 74 68 65 57 69 6e | 64 6f 77 20 21 3d 20 6e |( theWin|dow != n| |000019a0| 69 6c 20 29 0d 09 7b 0d | 09 09 2f 2a 20 6b 65 65 |il )..{.|../* kee| |000019b0| 70 20 63 6c 6f 73 69 6e | 67 20 77 69 6e 64 6f 77 |p closin|g window| |000019c0| 73 20 75 6e 74 69 6c 20 | 74 68 65 79 20 61 72 65 |s until |they are| |000019d0| 20 61 6c 6c 20 63 6c 6f | 73 65 64 2c 20 6f 72 20 | all clo|sed, or | |000019e0| 74 68 65 20 75 73 65 72 | 20 69 6e 74 65 72 72 75 |the user| interru| |000019f0| 70 74 73 0d 09 09 09 6f | 72 20 63 61 6e 63 65 6c |pts....o|r cancel| |00001a00| 73 20 74 68 65 20 63 6c | 6f 73 69 6e 67 20 2a 2f |s the cl|osing */| |00001a10| 0d 09 09 64 6f 0d 09 09 | 7b 0d 09 09 09 74 68 65 |...do...|{....the| |00001a20| 57 69 6e 64 6f 77 73 43 | 6c 6f 73 65 64 09 3d 20 |WindowsC|losed.= | |00001a30| 57 69 6e 64 6f 77 43 6c | 6f 73 65 20 28 20 74 68 |WindowCl|ose ( th| |00001a40| 65 57 69 6e 64 6f 77 2c | 20 6e 69 6c 2c 20 75 73 |eWindow,| nil, us| |00001a50| 65 72 49 6e 74 65 72 61 | 63 74 20 29 3b 0d 09 09 |erIntera|ct );...| |00001a60| 09 74 68 65 57 69 6e 64 | 6f 77 09 09 09 3d 20 46 |.theWind|ow...= F| |00001a70| 72 6f 6e 74 57 69 6e 64 | 6f 77 20 28 29 3b 0d 09 |rontWind|ow ();..| |00001a80| 09 09 0d 09 09 09 23 69 | 66 20 6b 43 6f 6d 70 69 |......#i|f kCompi| |00001a90| 6c 65 57 69 74 68 54 68 | 72 65 61 64 73 4f 70 74 |leWithTh|readsOpt| |00001aa0| 69 6f 6e 61 6c 0d 09 09 | 09 69 66 20 28 20 67 48 |ional...|.if ( gH| |00001ab0| 61 73 54 68 72 65 61 64 | 4d 67 72 20 29 0d 09 09 |asThread|Mgr )...| |00001ac0| 09 23 65 6e 64 69 66 0d | 09 09 09 7b 0d 09 09 09 |.#endif.|...{....| |00001ad0| 09 2f 2a 20 67 69 76 65 | 20 6f 74 68 65 72 20 70 |./* give| other p| |00001ae0| 72 6f 63 65 73 73 65 73 | 20 74 69 6d 65 20 2a 2f |rocesses| time */| |00001af0| 0d 09 09 09 09 59 69 65 | 6c 64 54 6f 41 6e 79 54 |.....Yie|ldToAnyT| |00001b00| 68 72 65 61 64 20 28 29 | 3b 0d 09 09 09 7d 0d 09 |hread ()|;....}..| |00001b10| 09 7d 20 77 68 69 6c 65 | 20 28 20 28 74 68 65 57 |.} while| ( (theW| |00001b20| 69 6e 64 6f 77 20 21 3d | 20 6e 69 6c 29 20 26 26 |indow !=| nil) &&| |00001b30| 20 28 21 75 73 65 72 49 | 6e 74 65 72 61 63 74 20 | (!userI|nteract | |00001b40| 7c 7c 20 74 68 65 57 69 | 6e 64 6f 77 73 43 6c 6f ||| theWi|ndowsClo| |00001b50| 73 65 64 29 20 29 3b 0d | 09 7d 0d 09 0d 09 72 65 |sed) );.|.}....re| |00001b60| 74 75 72 6e 20 74 68 65 | 57 69 6e 64 6f 77 73 43 |turn the|WindowsC| |00001b70| 6c 6f 73 65 64 3b 0d 7d | 20 2f 2a 20 57 69 6e 64 |losed;.}| /* Wind| |00001b80| 6f 77 43 6c 6f 73 65 41 | 6c 6c 20 2a 2f 0d 0d 0d |owCloseA|ll */...| |00001b90| 2f 2a 20 57 49 4e 44 4f | 57 20 4b 49 4e 44 20 54 |/* WINDO|W KIND T| |00001ba0| 45 53 54 49 4e 47 20 2a | 2f 0d 0d 2f 2a 20 77 61 |ESTING *|/../* wa| |00001bb0| 73 20 6b 69 6e 64 4f 66 | 57 69 6e 64 6f 77 20 2a |s kindOf|Window *| |00001bc0| 2f 0d 77 69 6e 64 6f 77 | 5f 74 79 70 65 0d 57 69 |/.window|_type.Wi| |00001bd0| 6e 64 6f 77 54 79 70 65 | 20 28 20 57 69 6e 64 6f |ndowType| ( Windo| |00001be0| 77 50 74 72 20 74 68 65 | 57 69 6e 64 6f 77 20 29 |wPtr the|Window )| |00001bf0| 0d 7b 0d 09 69 6e 74 09 | 09 09 09 77 69 6e 64 6f |.{..int.|...windo| |00001c00| 77 4b 69 6e 64 3b 0d 09 | 77 69 6e 64 6f 77 49 6e |wKind;..|windowIn| |00001c10| 66 6f 48 64 6c 09 77 69 | 6e 64 49 6e 66 6f 3b 0d |foHdl.wi|ndInfo;.| |00001c20| 09 0d 09 2f 2a 20 69 66 | 20 74 68 65 20 77 69 6e |.../* if| the win| |00001c30| 64 6f 77 20 69 73 20 61 | 20 6e 75 6c 6c 20 70 6f |dow is a| null po| |00001c40| 69 6e 74 65 72 20 72 65 | 74 75 72 6e 20 6e 65 67 |inter re|turn neg| |00001c50| 61 74 69 76 65 20 2a 2f | 0d 09 69 66 20 28 20 74 |ative */|..if ( t| |00001c60| 68 65 57 69 6e 64 6f 77 | 20 3d 3d 20 6e 69 6c 20 |heWindow| == nil | |00001c70| 29 0d 09 7b 0d 09 09 72 | 65 74 75 72 6e 20 57 69 |)..{...r|eturn Wi| |00001c80| 6e 64 6f 77 5f 6e 6f 6e | 65 3b 0d 09 7d 0d 09 0d |ndow_non|e;..}...| |00001c90| 09 77 69 6e 64 49 6e 66 | 6f 20 3d 20 28 77 69 6e |.windInf|o = (win| |00001ca0| 64 6f 77 49 6e 66 6f 48 | 64 6c 29 20 47 65 74 57 |dowInfoH|dl) GetW| |00001cb0| 52 65 66 43 6f 6e 20 28 | 20 74 68 65 57 69 6e 64 |RefCon (| theWind| |00001cc0| 6f 77 20 29 3b 0d 09 0d | 09 69 66 20 28 20 77 69 |ow );...|.if ( wi| |00001cd0| 6e 64 49 6e 66 6f 20 21 | 3d 20 6e 69 6c 20 29 0d |ndInfo !|= nil ).| |00001ce0| 09 7b 0d 09 09 72 65 74 | 75 72 6e 20 28 2a 77 69 |.{...ret|urn (*wi| |00001cf0| 6e 64 49 6e 66 6f 29 2d | 3e 77 54 79 70 65 3b 0d |ndInfo)-|>wType;.| |00001d00| 09 7d 0d 09 0d 09 77 69 | 6e 64 6f 77 4b 69 6e 64 |.}....wi|ndowKind| |00001d10| 20 3d 20 28 28 57 69 6e | 64 6f 77 50 65 65 6b 29 | = ((Win|dowPeek)| |00001d20| 74 68 65 57 69 6e 64 6f | 77 29 2d 3e 77 69 6e 64 |theWindo|w)->wind| |00001d30| 6f 77 4b 69 6e 64 3b 0d | 09 0d 09 69 66 20 28 20 |owKind;.|...if ( | |00001d40| 77 69 6e 64 6f 77 4b 69 | 6e 64 20 3c 20 6e 69 6c |windowKi|nd < nil| |00001d50| 20 29 0d 09 7b 0d 09 09 | 2f 2a 20 64 65 73 6b 20 | )..{...|/* desk | |00001d60| 61 63 63 65 73 73 6f 72 | 79 20 2a 2f 0d 09 09 72 |accessor|y */...r| |00001d70| 65 74 75 72 6e 20 57 69 | 6e 64 6f 77 5f 44 41 3b |eturn Wi|ndow_DA;| |00001d80| 0d 09 7d 0d 09 65 6c 73 | 65 20 69 66 20 28 20 77 |..}..els|e if ( w| |00001d90| 69 6e 64 6f 77 4b 69 6e | 64 20 3d 3d 20 64 69 61 |indowKin|d == dia| |00001da0| 6c 6f 67 4b 69 6e 64 20 | 29 0d 09 7b 0d 09 09 72 |logKind |)..{...r| |00001db0| 65 74 75 72 6e 20 57 69 | 6e 64 6f 77 5f 64 6c 67 |eturn Wi|ndow_dlg| |00001dc0| 4d 6f 64 61 6c 3b 0d 09 | 7d 0d 09 65 6c 73 65 0d |Modal;..|}..else.| |00001dd0| 09 7b 0d 09 09 72 65 74 | 75 72 6e 20 57 69 6e 64 |.{...ret|urn Wind| |00001de0| 6f 77 5f 55 4e 4b 4e 4f | 57 4e 3b 0d 09 7d 0d 7d |ow_UNKNO|WN;..}.}| |00001df0| 20 2f 2a 20 57 69 6e 64 | 6f 77 54 79 70 65 20 2a | /* Wind|owType *| |00001e00| 2f 0d 0d 0d 2f 2a 20 20 | 2a 2f 0d 42 6f 6f 6c 65 |/.../* |*/.Boole| |00001e10| 61 6e 0d 57 69 6e 64 6f | 77 4e 65 77 53 65 74 49 |an.Windo|wNewSetI| |00001e20| 6e 66 6f 20 28 0d 09 57 | 69 6e 64 6f 77 50 74 72 |nfo (..W|indowPtr| |00001e30| 09 09 74 68 65 57 69 6e | 64 6f 77 2c 0d 09 77 69 |..theWin|dow,..wi| |00001e40| 6e 64 6f 77 5f 74 79 70 | 65 09 09 74 68 65 54 79 |ndow_typ|e..theTy| |00001e50| 70 65 2c 0d 09 42 6f 6f | 6c 65 61 6e 09 09 09 68 |pe,..Boo|lean...h| |00001e60| 61 73 53 63 72 6f 6c 6c | 62 61 72 73 2c 0d 09 6c |asScroll|bars,..l| |00001e70| 6f 6e 67 09 09 09 74 68 | 65 44 61 74 61 20 29 0d |ong...th|eData ).| |00001e80| 7b 0d 09 77 69 6e 64 6f | 77 49 6e 66 6f 48 64 6c |{..windo|wInfoHdl| |00001e90| 09 74 68 65 57 69 6e 64 | 49 6e 66 6f 3b 0d 09 0d |.theWind|Info;...| |00001ea0| 09 74 68 65 57 69 6e 64 | 49 6e 66 6f 20 3d 20 57 |.theWind|Info = W| |00001eb0| 69 6e 64 6f 77 4e 65 77 | 49 6e 66 6f 48 64 6c 20 |indowNew|InfoHdl | |00001ec0| 28 20 74 68 65 54 79 70 | 65 2c 20 68 61 73 53 63 |( theTyp|e, hasSc| |00001ed0| 72 6f 6c 6c 62 61 72 73 | 2c 20 74 68 65 44 61 74 |rollbars|, theDat| |00001ee0| 61 20 29 3b 0d 09 0d 09 | 57 69 6e 64 6f 77 53 65 |a );....|WindowSe| |00001ef0| 74 49 6e 66 6f 48 64 6c | 20 28 20 74 68 65 57 69 |tInfoHdl| ( theWi| |00001f00| 6e 64 6f 77 2c 20 74 68 | 65 57 69 6e 64 49 6e 66 |ndow, th|eWindInf| |00001f10| 6f 20 29 3b 0d 09 0d 09 | 72 65 74 75 72 6e 20 28 |o );....|return (| |00001f20| 20 74 68 65 57 69 6e 64 | 49 6e 66 6f 20 21 3d 20 | theWind|Info != | |00001f30| 6e 69 6c 20 29 3b 0d 7d | 20 2f 2a 20 57 69 6e 64 |nil );.}| /* Wind| |00001f40| 6f 77 4e 65 77 53 65 74 | 49 6e 66 6f 20 2a 2f 0d |owNewSet|Info */.| |00001f50| 0d 0d 2f 2a 20 20 2a 2f | 0d 77 69 6e 64 6f 77 49 |../* */|.windowI| |00001f60| 6e 66 6f 48 64 6c 0d 57 | 69 6e 64 6f 77 4e 65 77 |nfoHdl.W|indowNew| |00001f70| 49 6e 66 6f 48 64 6c 20 | 28 0d 09 77 69 6e 64 6f |InfoHdl |(..windo| |00001f80| 77 5f 74 79 70 65 09 09 | 74 68 65 54 79 70 65 2c |w_type..|theType,| |00001f90| 0d 09 42 6f 6f 6c 65 61 | 6e 09 09 09 68 61 73 53 |..Boolea|n...hasS| |00001fa0| 63 72 6f 6c 6c 62 61 72 | 73 2c 0d 09 6c 6f 6e 67 |crollbar|s,..long| |00001fb0| 09 09 09 74 68 65 44 61 | 74 61 20 29 0d 7b 0d 09 |...theDa|ta ).{..| |00001fc0| 77 69 6e 64 6f 77 49 6e | 66 6f 48 64 6c 09 74 68 |windowIn|foHdl.th| |00001fd0| 65 57 69 6e 64 49 6e 66 | 6f 3b 0d 09 0d 09 74 68 |eWindInf|o;....th| |00001fe0| 65 57 69 6e 64 49 6e 66 | 6f 20 3d 20 28 77 69 6e |eWindInf|o = (win| |00001ff0| 64 6f 77 49 6e 66 6f 48 | 64 6c 29 20 4d 79 4e 65 |dowInfoH|dl) MyNe| |00002000| 77 48 61 6e 64 6c 65 20 | 28 20 73 69 7a 65 6f 66 |wHandle |( sizeof| |00002010| 28 77 69 6e 64 6f 77 49 | 6e 66 6f 29 2c 20 6e 69 |(windowI|nfo), ni| |00002020| 6c 20 29 3b 0d 09 0d 09 | 69 66 20 28 20 74 68 65 |l );....|if ( the| |00002030| 57 69 6e 64 49 6e 66 6f | 20 21 3d 20 6e 69 6c 20 |WindInfo| != nil | |00002040| 29 0d 09 7b 0d 09 09 28 | 2a 74 68 65 57 69 6e 64 |)..{...(|*theWind| |00002050| 49 6e 66 6f 29 2d 3e 77 | 54 79 70 65 09 09 3d 20 |Info)->w|Type..= | |00002060| 74 68 65 54 79 70 65 3b | 0d 09 09 28 2a 74 68 65 |theType;|...(*the| |00002070| 57 69 6e 64 49 6e 66 6f | 29 2d 3e 73 63 72 6f 6c |WindInfo|)->scrol| |00002080| 6c 62 61 72 73 09 3d 20 | 68 61 73 53 63 72 6f 6c |lbars.= |hasScrol| |00002090| 6c 62 61 72 73 3b 0d 09 | 09 28 2a 74 68 65 57 69 |lbars;..|.(*theWi| |000020a0| 6e 64 49 6e 66 6f 29 2d | 3e 64 61 74 61 09 09 3d |ndInfo)-|>data..=| |000020b0| 20 74 68 65 44 61 74 61 | 3b 0d 09 7d 0d 09 0d 09 | theData|;..}....| |000020c0| 72 65 74 75 72 6e 20 74 | 68 65 57 69 6e 64 49 6e |return t|heWindIn| |000020d0| 66 6f 3b 0d 7d 20 2f 2a | 20 57 69 6e 64 6f 77 4e |fo;.} /*| WindowN| |000020e0| 65 77 49 6e 66 6f 48 64 | 6c 20 2a 2f 0d 0d 0d 2f |ewInfoHd|l */.../| |000020f0| 2a 20 20 2a 2f 0d 76 6f | 69 64 0d 57 69 6e 64 6f |* */.vo|id.Windo| |00002100| 77 53 65 74 49 6e 66 6f | 48 64 6c 20 28 20 57 69 |wSetInfo|Hdl ( Wi| |00002110| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo| |00002120| 77 2c 20 77 69 6e 64 6f | 77 49 6e 66 6f 48 64 6c |w, windo|wInfoHdl| |00002130| 20 74 68 65 57 69 6e 64 | 49 6e 66 6f 20 29 0d 7b | theWind|Info ).{| |00002140| 0d 09 53 65 74 57 52 65 | 66 43 6f 6e 20 28 20 74 |..SetWRe|fCon ( t| |00002150| 68 65 57 69 6e 64 6f 77 | 2c 20 28 6c 6f 6e 67 29 |heWindow|, (long)| |00002160| 74 68 65 57 69 6e 64 49 | 6e 66 6f 20 29 3b 0d 7d |theWindI|nfo );.}| |00002170| 20 2f 2a 20 57 69 6e 64 | 6f 77 53 65 74 49 6e 66 | /* Wind|owSetInf| |00002180| 6f 48 64 6c 20 2a 2f 0d | 0d 0d 2f 2a 20 20 2a 2f |oHdl */.|../* */| |00002190| 0d 77 69 6e 64 6f 77 49 | 6e 66 6f 48 64 6c 0d 57 |.windowI|nfoHdl.W| |000021a0| 69 6e 64 6f 77 47 65 74 | 49 6e 66 6f 48 64 6c 20 |indowGet|InfoHdl | |000021b0| 28 20 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |( Window|Ptr theW| |000021c0| 69 6e 64 6f 77 20 29 0d | 7b 0d 09 77 69 6e 64 6f |indow ).|{..windo| |000021d0| 77 49 6e 66 6f 48 64 6c | 09 74 68 65 57 69 6e 64 |wInfoHdl|.theWind| |000021e0| 49 6e 66 6f 3b 0d 09 0d | 09 74 68 65 57 69 6e 64 |Info;...|.theWind| |000021f0| 49 6e 66 6f 20 3d 20 28 | 77 69 6e 64 6f 77 49 6e |Info = (|windowIn| |00002200| 66 6f 48 64 6c 29 20 47 | 65 74 57 52 65 66 43 6f |foHdl) G|etWRefCo| |00002210| 6e 20 28 20 74 68 65 57 | 69 6e 64 6f 77 20 29 3b |n ( theW|indow );| |00002220| 0d 09 0d 09 72 65 74 75 | 72 6e 20 74 68 65 57 69 |....retu|rn theWi| |00002230| 6e 64 49 6e 66 6f 3b 0d | 7d 20 2f 2a 20 57 69 6e |ndInfo;.|} /* Win| |00002240| 64 6f 77 47 65 74 49 6e | 66 6f 48 64 6c 20 2a 2f |dowGetIn|foHdl */| |00002250| 0d 0d 0d 2f 2a 20 52 65 | 74 75 72 6e 20 74 68 65 |.../* Re|turn the| |00002260| 20 75 73 65 72 20 73 70 | 65 63 69 66 69 65 64 20 | user sp|ecified | |00002270| 64 61 74 61 20 66 72 6f | 6d 20 74 68 65 20 77 69 |data fro|m the wi| |00002280| 6e 64 6f 77 49 6e 66 6f | 48 64 6c 20 6f 66 20 74 |ndowInfo|Hdl of t| |00002290| 68 65 20 77 69 6e 64 6f | 77 20 2a 2f 0d 6c 6f 6e |he windo|w */.lon| |000022a0| 67 0d 57 69 6e 64 6f 77 | 47 65 74 44 61 74 61 20 |g.Window|GetData | |000022b0| 28 20 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |( Window|Ptr theW| |000022c0| 69 6e 64 6f 77 20 29 0d | 7b 0d 09 77 69 6e 64 6f |indow ).|{..windo| |000022d0| 77 49 6e 66 6f 48 64 6c | 09 74 68 65 57 69 6e 64 |wInfoHdl|.theWind| |000022e0| 49 6e 66 6f 3b 0d 09 0d | 09 74 68 65 57 69 6e 64 |Info;...|.theWind| |000022f0| 49 6e 66 6f 20 3d 20 28 | 77 69 6e 64 6f 77 49 6e |Info = (|windowIn| |00002300| 66 6f 48 64 6c 29 20 47 | 65 74 57 52 65 66 43 6f |foHdl) G|etWRefCo| |00002310| 6e 20 28 20 74 68 65 57 | 69 6e 64 6f 77 20 29 3b |n ( theW|indow );| |00002320| 0d 09 0d 09 69 66 20 28 | 20 74 68 65 57 69 6e 64 |....if (| theWind| |00002330| 49 6e 66 6f 20 3d 3d 20 | 6e 69 6c 20 29 0d 09 7b |Info == |nil )..{| |00002340| 0d 09 09 72 65 74 75 72 | 6e 20 6e 69 6c 3b 0d 09 |...retur|n nil;..| |00002350| 7d 0d 09 65 6c 73 65 0d | 09 7b 0d 09 09 72 65 74 |}..else.|.{...ret| |00002360| 75 72 6e 20 28 2a 74 68 | 65 57 69 6e 64 49 6e 66 |urn (*th|eWindInf| |00002370| 6f 29 2d 3e 64 61 74 61 | 3b 0d 09 7d 0d 7d 20 2f |o)->data|;..}.} /| |00002380| 2a 20 57 69 6e 64 6f 77 | 47 65 74 44 61 74 61 20 |* Window|GetData | |00002390| 2a 2f 0d 0d 0d 2f 2a 20 | 52 65 74 75 72 6e 20 74 |*/.../* |Return t| |000023a0| 68 65 20 75 73 65 72 20 | 73 70 65 63 69 66 69 65 |he user |specifie| |000023b0| 64 20 64 61 74 61 20 66 | 72 6f 6d 20 74 68 65 20 |d data f|rom the | |000023c0| 77 69 6e 64 6f 77 49 6e | 66 6f 48 64 6c 20 6f 66 |windowIn|foHdl of| |000023d0| 20 74 68 65 20 77 69 6e | 64 6f 77 2c 20 61 73 20 | the win|dow, as | |000023e0| 61 20 68 61 6e 64 6c 65 | 0d 09 46 6f 72 20 62 61 |a handle|..For ba| |000023f0| 63 6b 77 61 72 64 73 20 | 63 6f 6d 70 61 74 69 62 |ckwards |compatib| |00002400| 69 6c 69 74 79 2e 20 41 | 76 6f 69 64 20 75 73 69 |ility. A|void usi| |00002410| 6e 67 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |ng this |function| |00002420| 2e 20 2a 2f 0d 48 61 6e | 64 6c 65 0d 57 69 6e 64 |. */.Han|dle.Wind| |00002430| 6f 77 47 65 74 44 61 74 | 61 48 64 6c 20 28 20 57 |owGetDat|aHdl ( W| |00002440| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind| |00002450| 6f 77 20 29 0d 7b 0d 09 | 72 65 74 75 72 6e 20 28 |ow ).{..|return (| |00002460| 48 61 6e 64 6c 65 29 20 | 28 20 57 69 6e 64 6f 77 |Handle) |( Window| |00002470| 47 65 74 44 61 74 61 28 | 74 68 65 57 69 6e 64 6f |GetData(|theWindo| |00002480| 77 29 20 29 3b 0d 7d 20 | 2f 2a 20 57 69 6e 64 6f |w) );.} |/* Windo| |00002490| 77 47 65 74 44 61 74 61 | 48 64 6c 20 2a 2f 0d 0d |wGetData|Hdl */..| |000024a0| 0d 2f 2a 20 20 2a 2f 0d | 76 6f 69 64 0d 57 69 6e |./* */.|void.Win| |000024b0| 64 6f 77 44 69 73 70 6f | 73 65 49 6e 66 6f 48 64 |dowDispo|seInfoHd| |000024c0| 6c 20 28 20 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |l ( Wind|owPtr th| |000024d0| 65 57 69 6e 64 6f 77 20 | 29 0d 7b 0d 09 48 61 6e |eWindow |).{..Han| |000024e0| 64 6c 65 09 74 68 65 57 | 69 6e 64 49 6e 66 6f 3b |dle.theW|indInfo;| |000024f0| 0d 09 0d 09 74 68 65 57 | 69 6e 64 49 6e 66 6f 20 |....theW|indInfo | |00002500| 3d 20 28 48 61 6e 64 6c | 65 29 20 47 65 74 57 52 |= (Handl|e) GetWR| |00002510| 65 66 43 6f 6e 20 28 20 | 74 68 65 57 69 6e 64 6f |efCon ( |theWindo| |00002520| 77 20 29 3b 0d 09 0d 09 | 69 66 20 28 20 74 68 65 |w );....|if ( the| |00002530| 57 69 6e 64 49 6e 66 6f | 20 21 3d 20 6e 69 6c 20 |WindInfo| != nil | |00002540| 29 0d 09 7b 0d 09 09 44 | 69 73 70 6f 73 65 48 61 |)..{...D|isposeHa| |00002550| 6e 64 6c 65 20 28 20 74 | 68 65 57 69 6e 64 49 6e |ndle ( t|heWindIn| |00002560| 66 6f 20 29 3b 0d 09 7d | 0d 7d 20 2f 2a 20 57 69 |fo );..}|.} /* Wi| |00002570| 6e 64 6f 77 44 69 73 70 | 6f 73 65 49 6e 66 6f 48 |ndowDisp|oseInfoH| |00002580| 64 6c 20 2a 2f 0d 0d 0d | 2f 2a 20 4d 49 53 43 20 |dl */...|/* MISC | |00002590| 55 54 49 4c 49 54 49 45 | 53 20 2a 2f 0d 0d 2f 2a |UTILITIE|S */../*| |000025a0| 20 20 2a 2f 0d 73 74 61 | 74 69 63 20 42 6f 6f 6c | */.sta|tic Bool| |000025b0| 65 61 6e 0d 77 69 6e 64 | 6f 77 56 61 6c 69 64 20 |ean.wind|owValid | |000025c0| 28 20 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |( Window|Ptr theW| |000025d0| 69 6e 64 6f 77 20 29 0d | 7b 0d 09 42 6f 6f 6c 65 |indow ).|{..Boole| |000025e0| 61 6e 09 09 69 73 56 61 | 6c 69 64 3b 0d 09 0d 09 |an..isVa|lid;....| |000025f0| 69 66 20 28 20 74 68 65 | 57 69 6e 64 6f 77 20 3d |if ( the|Window =| |00002600| 3d 20 6e 69 6c 20 29 0d | 09 7b 0d 09 09 69 73 56 |= nil ).|.{...isV| |00002610| 61 6c 69 64 20 3d 20 66 | 61 6c 73 65 3b 0d 09 7d |alid = f|alse;..}| |00002620| 0d 09 65 6c 73 65 0d 09 | 7b 0d 09 09 2f 2a 20 6e |..else..|{.../* n| |00002630| 65 65 64 20 6d 6f 72 65 | 20 74 65 73 74 73 20 68 |eed more| tests h| |00002640| 65 72 65 20 2a 2f 0d 09 | 09 69 73 56 61 6c 69 64 |ere */..|.isValid| |00002650| 20 3d 20 74 72 75 65 3b | 0d 09 7d 0d 09 0d 09 72 | = true;|..}....r| |00002660| 65 74 75 72 6e 20 69 73 | 56 61 6c 69 64 3b 0d 7d |eturn is|Valid;.}| |00002670| 20 2f 2a 20 77 69 6e 64 | 6f 77 56 61 6c 69 64 20 | /* wind|owValid | |00002680| 2a 2f 0d 0d 0d 2f 2a 20 | 20 2a 2f 0d 73 74 61 74 |*/.../* | */.stat| |00002690| 69 63 20 42 6f 6f 6c 65 | 61 6e 0d 77 69 6e 64 6f |ic Boole|an.windo| |000026a0| 77 48 61 73 53 63 72 6f | 6c 6c 62 61 72 73 20 28 |wHasScro|llbars (| |000026b0| 20 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 57 69 | WindowP|tr theWi| |000026c0| 6e 64 6f 77 20 29 0d 7b | 0d 09 77 69 6e 64 6f 77 |ndow ).{|..window| |000026d0| 49 6e 66 6f 48 64 6c 09 | 77 69 6e 64 49 6e 66 6f |InfoHdl.|windInfo| |000026e0| 3b 0d 09 0d 09 77 69 6e | 64 49 6e 66 6f 20 3d 20 |;....win|dInfo = | |000026f0| 28 77 69 6e 64 6f 77 49 | 6e 66 6f 48 64 6c 29 20 |(windowI|nfoHdl) | |00002700| 47 65 74 57 52 65 66 43 | 6f 6e 20 28 20 74 68 65 |GetWRefC|on ( the| |00002710| 57 69 6e 64 6f 77 20 29 | 3b 0d 09 0d 09 69 66 20 |Window )|;....if | |00002720| 28 20 77 69 6e 64 49 6e | 66 6f 20 21 3d 20 6e 69 |( windIn|fo != ni| |00002730| 6c 20 29 0d 09 7b 0d 09 | 09 72 65 74 75 72 6e 20 |l )..{..|.return | |00002740| 28 2a 77 69 6e 64 49 6e | 66 6f 29 2d 3e 73 63 72 |(*windIn|fo)->scr| |00002750| 6f 6c 6c 62 61 72 73 3b | 0d 09 7d 0d 09 65 6c 73 |ollbars;|..}..els| |00002760| 65 0d 09 7b 0d 09 09 72 | 65 74 75 72 6e 20 66 61 |e..{...r|eturn fa| |00002770| 6c 73 65 3b 0d 09 7d 0d | 7d 20 2f 2a 20 77 69 6e |lse;..}.|} /* win| |00002780| 64 6f 77 48 61 73 53 63 | 72 6f 6c 6c 62 61 72 73 |dowHasSc|rollbars| |00002790| 20 2a 2f 0d 0d 0d 2f 2a | 20 49 6e 76 61 6c 69 64 | */.../*| Invalid| |000027a0| 61 74 65 20 74 68 65 20 | 67 72 61 70 68 69 63 20 |ate the |graphic | |000027b0| 72 65 67 69 6f 6e 20 65 | 6e 63 6f 6d 70 61 73 69 |region e|ncompasi| |000027c0| 6e 67 20 74 68 65 20 73 | 63 72 6f 6c 6c 62 61 72 |ng the s|crollbar| |000027d0| 73 20 73 6f 20 74 68 61 | 74 20 74 68 65 79 20 77 |s so tha|t they w| |000027e0| 69 6c 6c 20 62 65 0d 09 | 70 72 6f 70 65 72 6c 79 |ill be..|properly| |000027f0| 20 75 70 64 61 74 65 64 | 2e 20 2a 2f 0d 73 74 61 | updated|. */.sta| |00002800| 74 69 63 20 76 6f 69 64 | 0d 69 6e 76 61 6c 69 64 |tic void|.invalid| |00002810| 61 74 65 53 63 72 6f 6c | 6c 62 61 72 73 20 28 20 |ateScrol|lbars ( | |00002820| 57 69 6e 64 6f 77 50 74 | 72 20 74 68 65 57 69 6e |WindowPt|r theWin| |00002830| 64 6f 77 20 29 0d 7b 0d | 09 52 65 63 74 09 74 65 |dow ).{.|.Rect.te| |00002840| 6d 70 52 65 63 74 3b 0d | 09 0d 09 69 66 20 28 20 |mpRect;.|...if ( | |00002850| 77 69 6e 64 6f 77 48 61 | 73 53 63 72 6f 6c 6c 62 |windowHa|sScrollb| |00002860| 61 72 73 28 74 68 65 57 | 69 6e 64 6f 77 29 20 29 |ars(theW|indow) )| |00002870| 0d 09 7b 0d 09 09 53 65 | 74 50 6f 72 74 20 28 20 |..{...Se|tPort ( | |00002880| 74 68 65 57 69 6e 64 6f | 77 20 29 3b 0d 09 09 0d |theWindo|w );....| |00002890| 09 09 2f 2a 20 69 6e 76 | 61 6c 69 64 61 74 65 20 |../* inv|alidate | |000028a0| 26 20 65 72 61 73 65 20 | 76 65 72 74 69 63 61 6c |& erase |vertical| |000028b0| 20 28 72 69 67 68 74 2d | 68 61 6e 64 20 73 69 64 | (right-|hand sid| |000028c0| 65 29 20 73 63 72 6f 6c | 6c 62 61 72 20 2a 2f 0d |e) scrol|lbar */.| |000028d0| 09 09 74 65 6d 70 52 65 | 63 74 09 09 3d 20 74 68 |..tempRe|ct..= th| |000028e0| 65 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |eWindow-|>portRec| |000028f0| 74 3b 0d 09 09 74 65 6d | 70 52 65 63 74 2e 6c 65 |t;...tem|pRect.le| |00002900| 66 74 09 3d 20 74 65 6d | 70 52 65 63 74 2e 72 69 |ft.= tem|pRect.ri| |00002910| 67 68 74 2d 31 35 3b 0d | 09 09 49 6e 76 61 6c 52 |ght-15;.|..InvalR| |00002920| 65 63 74 20 28 20 26 74 | 65 6d 70 52 65 63 74 20 |ect ( &t|empRect | |00002930| 29 3b 0d 09 09 45 72 61 | 73 65 52 65 63 74 20 28 |);...Era|seRect (| |00002940| 20 26 74 65 6d 70 52 65 | 63 74 20 29 3b 0d 09 09 | &tempRe|ct );...| |00002950| 0d 09 09 2f 2a 20 69 6e | 76 61 6c 69 64 61 74 65 |.../* in|validate| |00002960| 20 26 20 65 72 61 73 65 | 20 68 6f 72 69 7a 6f 6e | & erase| horizon| |00002970| 74 61 6c 20 28 62 6f 74 | 74 6f 6d 29 20 73 63 72 |tal (bot|tom) scr| |00002980| 6f 6c 6c 62 61 72 20 2a | 2f 0d 09 09 74 65 6d 70 |ollbar *|/...temp| |00002990| 52 65 63 74 09 09 3d 20 | 74 68 65 57 69 6e 64 6f |Rect..= |theWindo| |000029a0| 77 2d 3e 70 6f 72 74 52 | 65 63 74 3b 0d 09 09 74 |w->portR|ect;...t| |000029b0| 65 6d 70 52 65 63 74 2e | 74 6f 70 09 3d 20 74 65 |empRect.|top.= te| |000029c0| 6d 70 52 65 63 74 2e 62 | 6f 74 74 6f 6d 2d 31 35 |mpRect.b|ottom-15| |000029d0| 3b 0d 09 09 49 6e 76 61 | 6c 52 65 63 74 20 28 20 |;...Inva|lRect ( | |000029e0| 26 74 65 6d 70 52 65 63 | 74 20 29 3b 0d 09 09 45 |&tempRec|t );...E| |000029f0| 72 61 73 65 52 65 63 74 | 20 28 20 26 74 65 6d 70 |raseRect| ( &temp| |00002a00| 52 65 63 74 20 29 3b 0d | 09 7d 0d 7d 20 2f 2a 20 |Rect );.|.}.} /* | |00002a10| 69 6e 76 61 6c 69 64 61 | 74 65 53 63 72 6f 6c 6c |invalida|teScroll| |00002a20| 62 61 72 73 20 2a 2f 0d | 0d 0d 23 65 6e 64 69 66 |bars */.|..#endif| |00002a30| 09 2f 2a 20 6b 43 6f 6d | 70 69 6c 65 57 69 74 68 |./* kCom|pileWith| |00002a40| 46 6f 72 65 67 72 6f 75 | 6e 64 20 2a 2f 0d 0d 2f |Foregrou|nd */../| |00002a50| 2a 2a 2a 2a 2a 20 20 45 | 4f 46 20 20 2a 2a 2a 2a |***** E|OF ****| |00002a60| 2a 2f 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |*/......|........| |00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002a80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F| |00002a90| 00 00 10 2d 09 41 70 70 | 49 6e 69 74 2e 63 00 00 |...-.App|Init.c..| |00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002ab0| 0b 57 69 6e 64 6f 77 49 | 6e 74 2e 63 02 00 00 00 |.WindowI|nt.c....| |00002ac0| 54 45 58 54 43 57 49 45 | 00 04 00 00 00 00 00 00 |TEXTCWIE|........| |00002ad0| 00 00 54 45 58 54 43 57 | 49 45 00 04 00 00 00 00 |..TEXTCW|IE......| |00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002af0| 00 00 aa 20 f9 a7 00 00 | 00 00 00 00 01 9a 00 00 |... ....|........| |00002b00| 00 00 00 00 00 00 00 00 | 00 00 01 17 25 00 00 00 |........|....%...| |00002b10| 10 2d 0c 57 69 6e 64 6f | 77 55 74 69 6c 2e 63 00 |.-.Windo|wUtil.c.| |00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002b30| 00 00 00 00 01 18 25 00 | 00 00 10 3c 0c 43 75 72 |......%.|...<.Cur| |00002b40| 73 6f 72 73 2e 72 73 72 | 63 00 00 00 00 00 00 00 |sors.rsr|c.......| |00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 01 19 |........|........| |00002b60| 25 00 00 00 10 3c 0c 68 | 66 64 72 2e 74 74 2e 70 |%....<.h|fdr.tt.p| |00002b70| 69 63 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ict.....|........| |00002b80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....| |00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002ba0| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 05 01 b4 |........|...W....| |00002bb0| 02 19 00 57 00 05 01 b4 | 02 19 ad 21 dd 60 00 00 |...W....|...!.`..| |00002bc0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........| |00002bd0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T| |00002be0| 00 00 00 46 00 ad e4 e8 | 20 52 00 00 00 1c 00 46 |...F....| R.....F| |00002bf0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..| |00002c00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........| |00002c10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........| |00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+